using System;
using System.Collections.Generic;
using System.Text;

namespace Technoera.Common.Nh
{
    public class SqlNhManager : NhManager
    {
        public SqlNhManager(string connectionString, System.Reflection.Assembly[] mappingsAssemblies)
            : base(connectionString, "NHibernate.Driver.SqlClientDriver", "NHibernate.Connection.DriverConnectionProvider", "NHibernate.Dialect.MsSql2005Dialect", mappingsAssemblies, "ReadCommitted", "dbo") { }

        public SqlNhManager(string connectionString, System.Reflection.Assembly mappingsAssembly)
            : this(connectionString, new System.Reflection.Assembly[] { mappingsAssembly }, "ReadCommitted", "dbo") { }

        public SqlNhManager(string connectionString, System.Reflection.Assembly[] mappingsAssemblies, string isolation, string defaultSchema)
            : base(connectionString, "NHibernate.Driver.SqlClientDriver", "NHibernate.Connection.DriverConnectionProvider", "NHibernate.Dialect.MsSql2005Dialect", mappingsAssemblies, isolation, defaultSchema) { }

        public SqlNhManager(string connectionString, System.Reflection.Assembly mappingsAssembly, string isolation, string defaultSchema)
            : this(connectionString, new System.Reflection.Assembly[] { mappingsAssembly }, isolation, defaultSchema) { }
    }
}
